package com.caogen.cg_wl_kt.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.caogen.cg_wl_kt.base.BaseAdapter
import com.caogen.cg_wl_kt.base.BaseHolder
import com.caogen.cg_wl_kt.databinding.ItemHomeListBinding
import com.caogen.cg_wl_kt.model.dashboard.DashboardBean
import com.caogen.cg_wl_kt.vmodel.fragment.DashboardViewModel
import com.caogen.cg_wl_kt.vmodel.fragment.HomeViewModel

/**
 * 项目名称: cg_wl_kt
 * Packages:com.caogen.cg_wl_kt.adapter
 * author: FSW
 * 创建日期: 2024/2/29 09:57
 * Describe:
 *
 */
open class DashboardAdapter : BaseAdapter<DashboardBean, ItemHomeListBinding>(
    ItemHomeListBinding::inflate
){
    override fun onBindingData(holder: BaseHolder<ItemHomeListBinding>?,t: DashboardBean,position: Int) {

    }

    override fun onBindViewHolder(holder: BaseHolder<ItemHomeListBinding>, position: Int) {
        super.onBindViewHolder(holder, position)
        var item = data[position]
        holder.binding.textView.text = item.id
        holder.binding.textView2.text = "dashb"
        holder.binding.textView3.text = item.sub

    }

}